package com.example.controller;

import com.example.common.Jr;
import com.example.dto.BlogDto;
import com.example.entity.Blog;
import com.example.service.BlogService;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

/**
 * @author  guochao
 * @date  2022/1/6 20:52
 * @version 1.0
 */
@Controller
public class BlogController {
    @Resource
    private BlogService blogService;

    @RequestMapping("/blog/list")
    public String list() {
        blogService.listPage(null);
        return "blog/blog-list";
    }
}
